package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.media.pojos.WmUser;
import com.heima.model.wmmedia.dtos.WmUserDTO;
import org.springframework.web.bind.annotation.RequestBody;

public interface WmUserService extends IService<WmUser> {

    //根据用户名查询自媒体用户
    ResponseResult findByName(String name);

    //保存自媒体用户
    ResponseResult insert(WmUser wmUser);

    //自媒体用户登录
    ResponseResult login(WmUserDTO dto);
}
